﻿@model SKeeper.Application.ViewModels.Invoice.WarehouseInvoicesViewModel

@{
    ViewBag.Title = "Warehouse";
}

<h2>Фактури за @Model.WarehouseName</h2>
<a href="/invoice/add/@Model.WarehouseId" class="btn btn-primary">Создај нова фактура</a>
<div class="table-responsive">
    <table class="table table-striped">
        <thead>
            <tr>
                <td>Број</td>
                <td>Тип</td>
                <td>Дата на создавање</td>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model.Invoices)
            {
                <tr>
                    <td>
                        <a href="/invoice/preview/@item.Id">
                            @item.Code
                        </a>
                    </td>
                    <td>
                        @item.InvoiceType
                    </td>
                    <td>
                        @item.CreateDate
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>

